import 'package:english_words/english_words.dart';
import 'package:flutter/material.dart';

void main() {
  runApp(MaterialApp(
    home: Scaffold(
      appBar: AppBar(
        title: const Text("Roll Widget Demo"),
      ),
      body: BuildTwoListViewWideget(),
    ),
  ));
}

class BuildTwoListViewWideget extends StatelessWidget {

  @override
  Widget build(BuildContext context) {
    return buildTwoListView();
  }
}

Widget buildTwoListView() {
  var listView = ListView.builder(
    itemCount: 20,
    itemBuilder: (_, index) => ListTile(title: Text('$index'),),
  );
  return Column(
    children: [
      Expanded(child: listView),
      const Divider(color: Colors.grey,),
      Expanded(child: listView),
    ],
  );
}
